package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：供应商
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:    供应商
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name="T_SYS_GYS")
@Where(clause = "deleted!='1'")
public class Gys extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqGys", allocationSize = 1, sequenceName = "SEQ_SYS_GYS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqGys")
    private Long id;

    /**
     * 供应商
     */
    @ManyToOne
    @JoinColumn(name="GYS_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Qyjg glqy;

    /**
     * 内部公司
     */
    @ManyToOne
    @JoinColumn(name="NBGS_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Gsjg nbgs;

    /**
     * 预付额度
     */
    private Float yfed;
    /**
     *  备注
     */

    private String bz;
    /**
     * 是否启用
     */
    private Boolean sfqy;

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Boolean getSfqy() {
        return sfqy;
    }

    public void setSfqy(Boolean sfqy) {
        this.sfqy = sfqy;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Qyjg getGlqy() {
        return glqy;
    }

    public void setGlqy(Qyjg glqy) {
        this.glqy = glqy;
    }

    public Gsjg getNbgs() {
        return nbgs;
    }

    public void setNbgs(Gsjg nbgs) {
        this.nbgs = nbgs;
    }

    public Float getYfed() {
        return yfed;
    }

    public void setYfed(Float yfed) {
        this.yfed = yfed;
    }
}
